import { localize } from 'vee-validate'

const dictionry = {
  'zh-CN': {
    messages: {
      required: field => '请输入' + field,
      email: () => '请输入正确的邮箱格式',
      min: () => '长度不符合最小要求',
      length: (field, len) => {
        return `${field}不符合长度要求${len.length}`
      },
      confirmed: () => '两次输入不一致'
    },
    names: {
      email: '邮箱',
      password: '密码',
      username: '账号',
      code: '验证码'
    }
  }
}

localize(dictionry)
